<%@page import="support.*, java.util.*, java.sql.*, java.lang.Integer"%>
<%@ page import="java.sql.*, javax.sql.*, javax.naming.*" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Review Application</title>
</head>
<body>
    <%
    // TODO:  PUT USER NAME HERE BY REQUEST SCOPE
    %>
    <h1>User <font color="green"><% //out.print("(put user name)"); %></font> has requires more reviews</h1>
    Please reccomend more reviewers to grade his or her application:<br>
    <%
    // get list of reviewers who have not graded application from request scope
    ArrayList<Integer> reviewers = (ArrayList<Integer>)request.getSession(false).getAttribute("reviewersNotGraded");
    %>
    
    <form method="get" action="refer.do">
        <select name="reccomend">
        <% 
        // while there is more reviewers
        for(int i=0;i<reviewers.size(); i++){
            // pring out an option int he drop down for them
            out.print("<option value='" + reviewers.get(i) + "'>" + reviewers.get(i) + "</option>");
        }
        %>
        </select>
    <html:submit value="Submit" />
    </form>
    
</body>
</html>